package cn.chenxiejia;

/**
 * @version : V1.0
 * @program: maven
 * @ClassName: Te1
 * @Description: 用反射打印String类所有的方法
 * @Author: chenxiejia
 * @Date: 2022/2/8 20:21
 */
public class Te1 {
    public static void main(String[] args) {
        var s = String.class.getMethods();
        //System.out.println(s);
        //Arrays.stream(s).forEach(System.out::println);
        for (var a : s) {
            System.out.println(a.getName());
        }
    }
}
